﻿<UserControl x:Class="TFSServices.BuildStatusControl"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             Margin="0,0,5,5" Width="390">
    <UserControl.RenderTransform>
        <ScaleTransform x:Name="BuildStatusTransform" ScaleX="1" ScaleY="1" />
    </UserControl.RenderTransform>
    <Grid x:Name="LayoutRoot" Width="390" HorizontalAlignment="Left">
        <Grid.RowDefinitions>
            <RowDefinition x:Name="Header" Height="37" />
            <RowDefinition Height="80" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="390" />
        </Grid.ColumnDefinitions>
        <!-- Header -->
        <Border CornerRadius="5,5,5,5" Grid.Row="0" Grid.ColumnSpan="1" Padding="8,1,3,3" Margin="0,0,0,7">
            <Border.Background>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,0" >
                    <GradientStop Color="#FF070E41"/>
                    <GradientStop Color="#FFABB6FF" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <TextBlock x:Name="TeamProjectName" Text="Team Project Name" FontWeight="Bold"  FontSize="18" 
                       Foreground="#FFFFFFFF" />
        </Border>

        <!-- Content -->
        <Border Grid.Row="1" Grid.ColumnSpan="1" CornerRadius="5,5,5,5" Padding="5">
            <Border.Background>
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,0" >
                    <GradientStop Color="#FFC9CACC"/>
                    <GradientStop Color="#FFFDFDFD" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>

            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80" />
                    <ColumnDefinition Width="310" />
                </Grid.ColumnDefinitions>
                
                <Image x:Name="StatusImageGreen" Grid.Column="0" Grid.Row="0" Source="GreenButton.png" Stretch="Fill"/>
                <Image x:Name="StatusImageRed" Grid.Column="0" Grid.Row="0" Source="CrossButton.png" Stretch="Fill" Visibility="Collapsed" />
                <Image x:Name="StatusImageYellow" Grid.Column="0" Grid.Row="0" Source="YellowButton.png" Stretch="Fill" Visibility="Collapsed" />

                <Grid Grid.Column="1" Grid.Row="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock x:Name="BuildType" Grid.Row="0"
						Text="Checking Release" FontWeight="Bold" FontSize="15" />

                    <TextBlock x:Name="BuildStatus" Grid.Row="1" 
						Text="Successfully Completed, 02/06/2008 09:15 AM"  FontSize="15" />

                    <TextBlock x:Name="BuildTime" Grid.Row="2" 
                               Text="5th consecutive successful" 
                               FontSize="13"  />
                </Grid>

            </Grid>
        </Border>
    </Grid>
</UserControl>
